#include <buola/image/io.h>
#include <buola/image/algorithm/detail/opencv.h>

using namespace buola;

int main(int pNArg,char **pArgs)
{
    buola_init(pNArg,pArgs);

    try
    {
        mat::CMat34d lMat1{3,4,5,6,7,8,9,10,11,12,13,14};
        mat::CMat34d lMat2{1,2,1,2,1,2,1,2,1,2,1,2};
        mat::CMat_d lMatR(2,2);
        
        msg_info() << lMatR.size() << "\n";
        
        cv::subtract(mat_wrap(lMat1),mat_wrap(lMat2),mat_wrap(lMatR));
        
        msg_info() << lMatR;
        
        cv::subtract(mat_wrap(lMat1),mat_wrap(lMat2),mat_wrap(lMatR));
        
        msg_info() << lMatR << "\n";
    }
    catch(std::exception &pE)
    {
        msg_info() << "exception caught: " << pE.what() << "\n";
    }
    
    return buola_finish();
}
